<?php

namespace app\common\model;

use app\common\library\MemberVo;
use app\common\traits\TimeToStringTrait;
use think\Model;

/**
 * 模型
 */
class AgentWithdrawalRecord extends Model
{
    use TimeToStringTrait;

    // 表名
    protected $name = '';
    protected $deleteTime = false;
    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';
    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = false;

    // 追加属性
    protected $append = [

    ];


    public function bank()
    {
        return $this->belongsTo('bank', 'bank_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }

    public function agent()
    {
        return $this->belongsTo('agent', 'agent_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }




}
